package com.demo.javamail.mail;

import com.demo.javamail.util.MailUtil;

import java.io.File;

public class SendMail {
    public static void main(String[] args) {

        File file = new File("F:\\p.png");
        boolean sendMail = MailUtil.sendMail("wb-zll212114@alibaba-inc.com", "图片邮件", "测试图片","测试带图片的邮件",file);
        System.out.println("邮件发送状态 :"+(sendMail?"成功":"失败"));
    }
}
